$(function () {
    window.onload = function () {
        $.ajax({
            url: 'http://localhost:3000/useing/public',
            method: 'get',
            success: function (res) {
                console.log(res);
                var str = '';
                var srb = [];
                for (var i = 0; i < 6; i++) {
                    srb.push(res[i]);
                }
                $.each(srb, function (index, item) {
                    $.each(srb, function (index1, item1) {
                        str += "<li>" +
                            "<p class='for-p1'>" + item1.info_ty + "</p>" +
                            "<img width='100%' src=" + item1.img + " >" +
                            "<p>" + item1.text + "</p>" +
                            "<p class='for-p2'>" +
                            "<span>2032</span>" +
                            "<span>20台</span>" +
                            "</p>" +
                            "<p class='for-p3'>" +
                            "<span>1392</span>申请" +

                            "</p>" +
                            "<p class='for-p4'>报告数目:8</p>" +
                            "</li>"
                    })
                })

                $('.for-ul2').html(str)
            }
        })
    }
})